package com.maxlen.cart.feign;

import com.maxlen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("store-ware")
public interface WareFeignService {

    /**
     * 获取所有 skuId 的库存数量
     * @param skuIdList
     * @return
     */
    @PostMapping("/ware/waresku/has/stock")
    R getSkuHasStock(@RequestBody List<Long> skuIdList);

}
